package com.ys;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.ys.entity.base.BaseEntity;

/**
 * Hello world!
 *
 */
//@SpringBootApplication(exclude=DataSourceAutoConfiguration.class)
@SpringBootApplication
@EnableCaching
@MapperScan({"com.ys.mapper", "com.ys.mapper.base", "com.ys.mapper.admin"})
@EnableTransactionManagement
public class App {
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        BaseEntity.ac = context;
    }
}
